#pragma once

#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>

typedef int Datetype;
typedef struct SeqTable
{
	Datetype* head;
	int top;
	int capacity;
}ST;

ST* SeqTableCreate();
void SeqTableInit(ST* obj, int capacity);
void CheckCapacity(ST* obj);
void SeqTablePushFront(ST* obj, Datetype x);
void SeqTablePushBack(ST* obj, Datetype x);
void SeqTablePopFront(ST* obj);
void SeqTablePopBack(ST* obj);
void SeqTableInsert(ST* obj, int pos, Datetype x);
void SeqTableErase(ST* obj, int pos);
int SeqTableFind(ST* obj, Datetype x);
void SeqTableDestroy(ST* obj);
void SeqTablePrint(ST* obj);